package com.koron.order.common.mapper;

import com.koron.order.common.bean.po.OrderDispatchWorker;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (OrderDispatchWorker)表数据库访问层
 *
 * @author zhouj
 * @since 2021-09-03 16:09:53
 */
public interface OrderDispatchWorkerMapper {

    OrderDispatchWorker queryById(String id);

    List<OrderDispatchWorker> queryList(OrderDispatchWorker orderDispatchWorker);

    int insert(OrderDispatchWorker orderDispatchWorker);

    int update(OrderDispatchWorker orderDispatchWorker);

    int deleteById(String id);

    int deleteByOrderId(String orderId);

    int deleteByDispatchId(String dispatchId);

    int deleteByDispatchIdOrderId(@Param("dispatchId") String dispatchId, @Param("orderId") String orderId);

    int deleteByTeamId(String teamId);

    int insertBatch(@Param("list") List<OrderDispatchWorker> orderDispatchWorkerList);

    List<OrderDispatchWorker> queryByOrderId(String orderId);

}